
class mzSequence:
    def __init__(self, filename):
        f = open(filename, "r")
        self.header = f.readline()
        self.data = f.read().replace("\n", "")
        self.readStart = 3
        self.charLengthChecked = False
        self.charMaxWidth = 0
        
    def getMaxLetterWidth(self, t_dc):
        self.charMaxWidth = 0
        for c in self.data:
            currentSize = t_dc.GetTextExtent(c)
            if currentSize[0] > self.charMaxWidth:
                self.charMaxWidth = currentSize[0]

        self.charLengthChecked = True